const p1 = new Promise((resolve, reject) => {
    setTimeout(() => {
        resolve(200)
    }, 3000)
})
const p2 = new Promise((resolve, reject) => {
    setTimeout(() => {
        resolve(100)
    }, 1000)
})


Promise.all([p1,p2]).then(res=>{
    console.log(res)
})